<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="./../include/stdlib.jspf" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@include file="include/meta.jspf" %>
    <title>故障回单详情</title>
    <link rel="stylesheet" href="${root}/static/wechat/css.css">
    <link rel="stylesheet" href="${root}/static/wechat/index.css">
</head>
<body style="background-color: #f6f6f6">
<!--内容部分-->
<div class="content">
    <c:forEach items="${list}" var="entity">
    <table>
           <tr>
               <td>报警时间</td>
               <td><c:choose>
                   <c:when test="${entity.createdDate == null}">
                       <jsp:useBean id="now" class="java.util.Date"/>
                       <fmt:formatDate value='${now}' type="date" pattern="yyyy-MM-dd"/>
                   </c:when>
                   <c:otherwise>
                       <fmt:formatDate value='${entity.createdDate}' type="date" pattern="yyyy-MM-dd"/>
                   </c:otherwise>
               </c:choose></td>
           </tr>
           <tr>
               <td>提醒次数</td>
               <td>${entity.pushedCount}</td>
           </tr>
           <tr>
               <td>倾斜角度</td>
               <td>${entity.billboard.angleCorrectedValue}°</td>
           </tr>
           <tr>
               <td>安装年代</td>
               <td><c:choose>
                   <c:when test="${entity.billboard.installTime == null}">

                   </c:when>
                   <c:otherwise>
                       <fmt:formatDate value='${entity.billboard.installTime}' type="date" pattern="yyyy-MM-dd"/>
                   </c:otherwise>
               </c:choose></td>
           </tr>
           <tr>
               <td>安装方式</td>
               <td>
                   <c:if test="${entity.billboard.installMethod=='HAND_FIX'}">手动安装</c:if>
                   <c:if test="${entity.billboard.installMethod=='MACHINE_FIX'}">机械安装</c:if>
               </td>
           </tr>
           <tr>
               <td>面积</td>
               <td>${entity.billboard.area}</td>
           </tr>
           <tr>
               <td>材质</td>
               <td>
                   <c:if test="${entity.billboard.material=='PC_BOARD'}">PC板</c:if>
                   <c:if test="${entity.billboard.material=='KT_BOARD'}">KT板</c:if>
                   <c:if test="${entity.billboard.material=='PP_BOARD'}">PP板</c:if>
               </td>
           </tr>
           <tr>
               <td>风险系数</td>
               <td>66%</td>
           </tr>
           <tr>
               <td>处理选项</td>
               <td>
                   <c:if test="${entity.resultType=='NORMAL'}">检查正常</c:if>
                   <c:if test="${entity.resultType=='REINFORCE'}">修复加固</c:if>
                   <c:if test="${entity.resultType==''} || ${entity.resultType==null}"> </c:if>
               </td>
           </tr>
           <tr>
               <td>维修人</td>
               <td>${entity.repairMan.realName}</td>
           </tr>
           <tr>
               <td>处理结果描述</td>
               <td>${entity.resultDescription}</td>
           </tr>
    </table>
    </c:forEach>
</div>
</body>
<%@include file="include/script.jspf" %>
</html>
